'use strict';
import { capitalized } from '../utils/capitalized';

/**
 * 获取浏览器CSS3前缀, 默认: ''  
 **/ 
export const VENDOR_LOGO = (function () {
    const slice = Array.prototype.slice;
    const style = window.getComputedStyle(document.documentElement, '');
    const logos = (slice.call(style).join('').match(/-(moz|webkit|ms)-/) || (style.OLink === '' && ['', 'o']))[1];

    return capitalized(logos);
  })() || '';